#-*-coding:utf-8-*-


def addopenid(url, openid):
    '''将openid接到url上'''
    if "?" in url:
        redi_url = url + "&openid=" + openid
    else:
        redi_url = url + "?openid=" + openid
    return redi_url
